<?php
declare(strict_types=1);

namespace App\Resource\LotteryTurntable\Prize;


use Illuminate\Http\Resources\Json\JsonResource;

class RateResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "id" => $this->prize->reward->id,
            "rate" => $this->show_rate,
            "prize" => Resource::make($this->prize->reward),
        ];
    }
}